package com.demo.lps;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by china on 2017/6/21.
 */
public class Father {
    public Collection doSom(HashMap map) {
        System.out.println("父类被执行");
        return map.values();
    }
}

class Child extends Father {
    public Collection doSom(String map) {
        System.out.println("子类运行");
        return null;
    }
}

class FClient {
    public static void main(String[] args) {
//        Father f = new Child();
        Father f = new Father();
        f.doSom(new HashMap());
    }
}


